
#ifndef _PowerUp_H_
#define _PowerUp_H_

#include "../Ship.h"

class PowerUp {

  public:
    PowerUp(Ship *ship) : applied_ship(ship) {}

    virtual ~PowerUp(){}

    //static void renderIcon(float size); // All PowerUps must have this as a static function
 
    bool isExpired(void) const {
        return (Timer::currentTicks() - effect_start) > 1000*effect_duration;
    }

  protected:
    unsigned effect_duration; // in seconds
    unsigned effect_start;
    Ship *applied_ship;
    
};

#endif

